import {ColumnsUtil} from "@/utils";



export const ATTEND_COLUMNS = [
    {
        title: '参与会员', dataIndex: 'member', children: [
            ColumnsUtil.normalColumn("手机号码", "member.phoneNumber", 125),
            ColumnsUtil.normalColumn("会员昵称", "member.nickName", 130),

        ]
    },

    {
        title: '参与活动', dataIndex: 'activity', children: [
            ColumnsUtil.normalColumn("活动标题", "activity.title", 170),
            ColumnsUtil.normalColumn("活动状态", "activity.state.label", 100),
        ]
    },
    ColumnsUtil.normalColumn("分享链接", "shareData.link", 0),
    ColumnsUtil.normalColumn("参与时间", "attendTime", 175),
    ColumnsUtil.normalColumn("邀请人数", "achievedTotal", 90 ,'center'),
    ColumnsUtil.normalColumn("领奖次数", "prizeTotal", 90 ,'center'),
    ColumnsUtil.actionColumn(100),
];



export const RECORD_COLUMNS = [
    {
        title: '注册邀请人', dataIndex: 'inviter', children: [
            ColumnsUtil.normalColumn("手机号码", "inviter.phoneNumber", 130),
            ColumnsUtil.normalColumn("会员昵称", "inviter.nickName", 130),

        ]
    },

    {
        title: '注册新用户', dataIndex: 'actor', children: [
            ColumnsUtil.normalColumn("手机号码", "actor.phoneNumber", 130),
            ColumnsUtil.normalColumn("会员昵称", "actor.nickName", 130),
            ColumnsUtil.normalColumn("注册时间", "achievedTime", 175),
        ]
    },
    ColumnsUtil.normalColumn("所属活动", "activity.title", 0),
    ColumnsUtil.normalColumn("注册序号", "xh", 90 ,'center'),
    ColumnsUtil.booleanColumn("触发奖励", "prizeAttr", '是' ,'否',90, true,'center'),

];


